package com.bjpowernode.service.impl;

import com.bjpowernode.DlykServerApplication;
import com.bjpowernode.entity.TDicValue;
import com.bjpowernode.service.DicService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class DicServiceImpl implements DicService {

    @Override
    public List<TDicValue> getDicByType(String type) {
        List<TDicValue> list = (List<TDicValue>)DlykServerApplication.cacheMap.get(type);
        return list;
    }
}
